package GUI;

import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import Animal.SquirrelMonkey;
import Animalmanagement.Animal;
import Animalmanagement.AnimalManagement;

public class Zoomap extends javax.swing.JFrame {

	AnimalManagement zoomanagement;

	public Zoomap(AnimalManagement ani) {
		initComponents();
		zoomanagement = ani;
	}

	@SuppressWarnings("unchecked")
	private void initComponents() {
		final ImageIcon main1 = new ImageIcon("src/source/main/ani_main.jpg");

		jPanel1 = new javax.swing.JPanel() {
			public void paintComponent(Graphics g) {
				g.drawImage(main1.getImage(), 0, 0, null);
				setOpaque(false);
			}
		};

		MapBtnAction btn = new MapBtnAction();

		ostrichbtn = new javax.swing.JButton();
		crowbtn = new javax.swing.JButton();
		storkbtn = new javax.swing.JButton();
		peacockbtn = new javax.swing.JButton();
		pericanbtn = new javax.swing.JButton();
		penguinbtn = new javax.swing.JButton();
		kangaroobtn = new javax.swing.JButton();
		horsebtn = new javax.swing.JButton();
		giraffebtn = new javax.swing.JButton();
		impalabtn = new javax.swing.JButton();
		koalabtn = new javax.swing.JButton();
		lionbtn = new javax.swing.JButton();
		wildboarbtn = new javax.swing.JButton();
		gibbonbtn = new javax.swing.JButton();
		baboonbtn = new javax.swing.JButton();
		bearbtn = new javax.swing.JButton();
		tigerbtn = new javax.swing.JButton();
		orangutanbtn = new javax.swing.JButton();
		elephantbtn = new javax.swing.JButton();
		leopardbtn = new javax.swing.JButton();
		gorillabtn = new javax.swing.JButton();
		fursealbtn = new javax.swing.JButton();
		squirrelmonkeybtn = new javax.swing.JButton();
		molebtn = new javax.swing.JButton();
		iguanabtn = new javax.swing.JButton();
		frogbtn = new javax.swing.JButton();
		turtlebtn = new javax.swing.JButton();
		crocodilebtn = new javax.swing.JButton();
		jButton1 = new javax.swing.JButton();

		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
		setPreferredSize(new java.awt.Dimension(960, 720));

		jPanel1.setBorder(javax.swing.BorderFactory
				.createLineBorder(new java.awt.Color(0, 0, 0)));

		javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(
				jPanel1);
		jPanel1.setLayout(jPanel1Layout);
		jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 548,
				Short.MAX_VALUE));
		jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 428,
				Short.MAX_VALUE));

		ostrichbtn.setBackground(new java.awt.Color(255, 153, 153));
		ostrichbtn.setText("Ostrich");
		ostrichbtn.addActionListener(btn);

		crowbtn.setBackground(new java.awt.Color(255, 153, 153));
		crowbtn.setText("Crow");
		crowbtn.addActionListener(btn);

		storkbtn.setBackground(new java.awt.Color(255, 153, 153));
		storkbtn.setText("Stork");
		storkbtn.addActionListener(btn);

		peacockbtn.setBackground(new java.awt.Color(255, 153, 153));
		peacockbtn.setText("Peacock");
		peacockbtn.addActionListener(btn);

		pericanbtn.setBackground(new java.awt.Color(255, 153, 153));
		pericanbtn.setText("Pelican");
		pericanbtn.addActionListener(btn);

		penguinbtn.setBackground(new java.awt.Color(255, 153, 153));
		penguinbtn.setText("Penguin");
		penguinbtn.addActionListener(btn);

		kangaroobtn.setBackground(new java.awt.Color(153, 153, 255));
		kangaroobtn.setText("Kangaroo");
		kangaroobtn.addActionListener(btn);

		horsebtn.setBackground(new java.awt.Color(153, 153, 255));
		horsebtn.setText("Horse");
		horsebtn.addActionListener(btn);

		giraffebtn.setBackground(new java.awt.Color(153, 153, 255));
		giraffebtn.setText("Giraffe");
		giraffebtn.addActionListener(btn);

		impalabtn.setBackground(new java.awt.Color(153, 153, 255));
		impalabtn.setText("Impala");
		impalabtn.addActionListener(btn);

		koalabtn.setBackground(new java.awt.Color(153, 153, 255));
		koalabtn.setText("Koala");
		koalabtn.addActionListener(btn);

		lionbtn.setBackground(new java.awt.Color(153, 153, 255));
		lionbtn.setText("Lion");
		lionbtn.addActionListener(btn);

		wildboarbtn.setBackground(new java.awt.Color(153, 153, 255));
		wildboarbtn.setText("Wild Boar");
		wildboarbtn.addActionListener(btn);

		gibbonbtn.setBackground(new java.awt.Color(153, 153, 255));
		gibbonbtn.setText("Gibbon");
		gibbonbtn.addActionListener(btn);

		baboonbtn.setBackground(new java.awt.Color(153, 153, 255));
		baboonbtn.setText("Baboon");
		baboonbtn.addActionListener(btn);

		bearbtn.setBackground(new java.awt.Color(153, 153, 255));
		bearbtn.setText("Bear");
		bearbtn.addActionListener(btn);

		tigerbtn.setBackground(new java.awt.Color(153, 153, 255));
		tigerbtn.setText("Tiger");
		tigerbtn.addActionListener(btn);

		orangutanbtn.setBackground(new java.awt.Color(153, 153, 255));
		orangutanbtn.setText("Orangutan");
		orangutanbtn.addActionListener(btn);

		elephantbtn.setBackground(new java.awt.Color(153, 153, 255));
		elephantbtn.setText("Elephant");
		elephantbtn.addActionListener(btn);

		leopardbtn.setBackground(new java.awt.Color(153, 153, 255));
		leopardbtn.setText("Leopard");
		leopardbtn.addActionListener(btn);

		gorillabtn.setBackground(new java.awt.Color(153, 153, 255));
		gorillabtn.setText("Gorilla");
		gorillabtn.addActionListener(btn);

		fursealbtn.setBackground(new java.awt.Color(153, 153, 255));
		fursealbtn.setText("Furseal");
		fursealbtn.addActionListener(btn);

		squirrelmonkeybtn.setBackground(new java.awt.Color(153, 153, 255));
		squirrelmonkeybtn.setText("SquirrelMonkey");
		squirrelmonkeybtn.addActionListener(btn);

		molebtn.setBackground(new java.awt.Color(153, 153, 255));
		molebtn.setText("Mole");
		molebtn.addActionListener(btn);

		iguanabtn.setBackground(new java.awt.Color(255, 255, 153));
		iguanabtn.setText("Iguana");
		iguanabtn.addActionListener(btn);

		frogbtn.setBackground(new java.awt.Color(255, 255, 153));
		frogbtn.setText("Frog");
		frogbtn.addActionListener(btn);

		turtlebtn.setBackground(new java.awt.Color(255, 255, 153));
		turtlebtn.setText("Turtle");
		turtlebtn.addActionListener(btn);

		crocodilebtn.setBackground(new java.awt.Color(255, 255, 153));
		crocodilebtn.setText("Crocodile");
		crocodilebtn.addActionListener(btn);

		jButton1.setText("back");
		jButton1.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				setVisible(false);
			}
		});

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addComponent(jPanel1,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addGap(21, 21, 21)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		peacockbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		pericanbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		penguinbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE))
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		ostrichbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		crowbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		storkbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE))
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		horsebtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		giraffebtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		lionbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE))
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		kangaroobtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		impalabtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		koalabtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE))
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		gibbonbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		baboonbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		orangutanbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE))
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		wildboarbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		bearbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		tigerbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE))
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		leopardbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		gorillabtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		molebtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE))
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		elephantbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		fursealbtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		squirrelmonkeybtn))
												.addGroup(
														layout.createSequentialGroup()
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.TRAILING)
																				.addComponent(
																						frogbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						104,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addGroup(
																						layout.createSequentialGroup()
																								.addComponent(
																										iguanabtn,
																										javax.swing.GroupLayout.PREFERRED_SIZE,
																										104,
																										javax.swing.GroupLayout.PREFERRED_SIZE)
																								.addPreferredGap(
																										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																								.addComponent(
																										turtlebtn,
																										javax.swing.GroupLayout.PREFERRED_SIZE,
																										104,
																										javax.swing.GroupLayout.PREFERRED_SIZE)))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		crocodilebtn,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		104,
																		javax.swing.GroupLayout.PREFERRED_SIZE)))
								.addContainerGap(13, Short.MAX_VALUE))
				.addGroup(
						javax.swing.GroupLayout.Alignment.TRAILING,
						layout.createSequentialGroup()
								.addContainerGap(
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)
								.addComponent(jButton1,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										80,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap()));

		layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
				new java.awt.Component[] { baboonbtn, bearbtn, crocodilebtn,
						crowbtn, elephantbtn, frogbtn, fursealbtn, gibbonbtn,
						giraffebtn, gorillabtn, horsebtn, iguanabtn, impalabtn,
						kangaroobtn, koalabtn, leopardbtn, lionbtn, molebtn,
						orangutanbtn, ostrichbtn, peacockbtn, penguinbtn,
						pericanbtn, squirrelmonkeybtn, storkbtn, tigerbtn,
						turtlebtn, wildboarbtn });

		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addComponent(jButton1,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										49,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED,
										50, Short.MAX_VALUE)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addGroup(
														javax.swing.GroupLayout.Alignment.TRAILING,
														layout.createSequentialGroup()
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						ostrichbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						41,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						crowbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						storkbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						peacockbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						pericanbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						penguinbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addGap(39, 39,
																		39)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						kangaroobtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						impalabtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						koalabtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						horsebtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						giraffebtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						lionbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						wildboarbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						bearbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						tigerbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						gibbonbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						baboonbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						orangutanbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						elephantbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						fursealbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						squirrelmonkeybtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						leopardbtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						gorillabtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						molebtn,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						33,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addGap(38, 38,
																		38))
												.addGroup(
														javax.swing.GroupLayout.Alignment.TRAILING,
														layout.createSequentialGroup()
																.addComponent(
																		jPanel1,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addGap(15, 15,
																		15)))
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														iguanabtn,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														33,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														turtlebtn,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														33,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														crocodilebtn,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														33,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
								.addComponent(frogbtn,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										33,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addGap(29, 29, 29)));

		layout.linkSize(javax.swing.SwingConstants.VERTICAL,
				new java.awt.Component[] { baboonbtn, bearbtn, crocodilebtn,
						crowbtn, elephantbtn, frogbtn, fursealbtn, gibbonbtn,
						giraffebtn, gorillabtn, horsebtn, iguanabtn, impalabtn,
						kangaroobtn, koalabtn, leopardbtn, lionbtn, molebtn,
						orangutanbtn, ostrichbtn, peacockbtn, penguinbtn,
						pericanbtn, squirrelmonkeybtn, storkbtn, tigerbtn,
						turtlebtn, wildboarbtn });
		pack();
	}

	private javax.swing.JButton baboonbtn;
	private javax.swing.JButton bearbtn;
	private javax.swing.JButton crocodilebtn;
	private javax.swing.JButton crowbtn;
	private javax.swing.JButton elephantbtn;
	private javax.swing.JButton frogbtn;
	private javax.swing.JButton fursealbtn;
	private javax.swing.JButton gibbonbtn;
	private javax.swing.JButton giraffebtn;
	private javax.swing.JButton gorillabtn;
	private javax.swing.JButton horsebtn;
	private javax.swing.JButton iguanabtn;
	private javax.swing.JButton impalabtn;
	private javax.swing.JButton jButton1;
	private javax.swing.JPanel jPanel1;
	private javax.swing.JButton kangaroobtn;
	private javax.swing.JButton koalabtn;
	private javax.swing.JButton leopardbtn;
	private javax.swing.JButton lionbtn;
	private javax.swing.JButton molebtn;
	private javax.swing.JButton orangutanbtn;
	private javax.swing.JButton ostrichbtn;
	private javax.swing.JButton peacockbtn;
	private javax.swing.JButton penguinbtn;
	private javax.swing.JButton pericanbtn;
	private javax.swing.JButton squirrelmonkeybtn;
	private javax.swing.JButton storkbtn;
	private javax.swing.JButton tigerbtn;
	private javax.swing.JButton turtlebtn;
	private javax.swing.JButton wildboarbtn;

	public class MapBtnAction implements ActionListener {

		public void actionPerformed(ActionEvent e) {
			if (e.getSource().equals(baboonbtn)) {
				try {
					AnimalGUI baboon = new AnimalGUI(
							zoomanagement.SearchingAnimal("baboon"));
					baboon.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(ostrichbtn)) {
				try {
					AnimalGUI ostrich = new AnimalGUI(
							zoomanagement.SearchingAnimal("ostrich"));
					ostrich.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(crowbtn)) {
				try {

					AnimalGUI crow = new AnimalGUI(
							zoomanagement.SearchingAnimal("crow"));
					crow.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(storkbtn)) {
				try {
					AnimalGUI stork = new AnimalGUI(
							zoomanagement.SearchingAnimal("stork"));
					stork.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(peacockbtn)) {
				try {
					AnimalGUI peacock = new AnimalGUI(
							zoomanagement.SearchingAnimal("peacock"));
					peacock.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(pericanbtn)) {
				try {
					AnimalGUI pelican = new AnimalGUI(
							zoomanagement.SearchingAnimal("pelican"));
					pelican.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(penguinbtn)) {
				try {
					AnimalGUI penguin = new AnimalGUI(
							zoomanagement.SearchingAnimal("penguin"));
					penguin.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(kangaroobtn)) {
				try {
					AnimalGUI kangaroo = new AnimalGUI(
							zoomanagement.SearchingAnimal("kangaroo"));
					kangaroo.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(horsebtn)) {
				try {
					AnimalGUI horse = new AnimalGUI(
							zoomanagement.SearchingAnimal("horse"));
					horse.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(giraffebtn)) {
				try {
					AnimalGUI giraffe = new AnimalGUI(
							zoomanagement.SearchingAnimal("giraffe"));
					giraffe.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(impalabtn)) {
				try {
					AnimalGUI impala = new AnimalGUI(
							zoomanagement.SearchingAnimal("impala"));
					impala.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(koalabtn)) {
				try {
					AnimalGUI koala = new AnimalGUI(
							zoomanagement.SearchingAnimal("koala"));
					koala.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(lionbtn)) {
				try {
					AnimalGUI lion = new AnimalGUI(
							zoomanagement.SearchingAnimal("lion"));
					lion.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(wildboarbtn)) {
				try {
					AnimalGUI wildboar = new AnimalGUI(
							zoomanagement.SearchingAnimal("wildboar"));
					wildboar.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(gibbonbtn)) {
				try {
					AnimalGUI gibbon = new AnimalGUI(
							zoomanagement.SearchingAnimal("gibbon"));
					gibbon.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(bearbtn)) {
				try {
					AnimalGUI bear = new AnimalGUI(
							zoomanagement.SearchingAnimal("bear"));
					bear.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(tigerbtn)) {
				try {
					AnimalGUI tiger = new AnimalGUI(
							zoomanagement.SearchingAnimal("tiger"));
					tiger.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(orangutanbtn)) {
				try {
					AnimalGUI orangutan = new AnimalGUI(
							zoomanagement.SearchingAnimal("orangutan"));
					orangutan.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(elephantbtn)) {
				try {
					AnimalGUI elephant = new AnimalGUI(
							zoomanagement.SearchingAnimal("elephant"));
					elephant.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(leopardbtn)) {
				try {
					AnimalGUI leopard = new AnimalGUI(
							zoomanagement.SearchingAnimal("leopard"));
					leopard.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(gorillabtn)) {
				try {
					AnimalGUI gorilla = new AnimalGUI(
							zoomanagement.SearchingAnimal("gorilla"));
					gorilla.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(fursealbtn)) {
				try {
					AnimalGUI furseal = new AnimalGUI(
							zoomanagement.SearchingAnimal("furseal"));
					furseal.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(squirrelmonkeybtn)) {
				try {
					AnimalGUI squirrelmonkey = new AnimalGUI(
							zoomanagement.SearchingAnimal("Squirrel Monkey"));
					squirrelmonkey.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(molebtn)) {
				try {
					AnimalGUI mole = new AnimalGUI(
							zoomanagement.SearchingAnimal("mole"));
					mole.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(iguanabtn)) {
				try {
					AnimalGUI iguana = new AnimalGUI(
							zoomanagement.SearchingAnimal("iguana"));
					iguana.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(frogbtn)) {
				try {
					AnimalGUI frog = new AnimalGUI(
							zoomanagement.SearchingAnimal("frog"));
					frog.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(turtlebtn)) {
				try {
					AnimalGUI turtle = new AnimalGUI(
							zoomanagement.SearchingAnimal("turtle"));
					turtle.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			} else if (e.getSource().equals(crocodilebtn)) {
				try {
					AnimalGUI crocodile = new AnimalGUI(
							zoomanagement.SearchingAnimal("crocodile"));
					crocodile.setVisible(true);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			}
		}
	}
}
